<%@ page language="java" import="java.util.*, model.*" pageEncoding="ISO-8859-1"%>
<%@page import="bean.Poll"%>
<%	
	ArrayList al = new ArrayList();
	al = PCShowPoll.showPoll();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>Producing Report</title>
  </head>
  
  <body>
    <div class='clearboth'></div>
			<div id="goods">
			 <table border="1" Width="100%" cellpadding="0" cellspacing="0" color="red" >
				<thead>
				<tr id="row1" align="left">
				<th>Id</th>
				<th>Version</th>
				<th>Name</th>
				<th>Description</th>
				<th>Latitude</th>
				<th>Longitude</th>
				<th>Creator</th>
				<th>Createtime</th>
				</tr>
				</thead>
				
				
				<tbody>
				
				<%

									for (int i = 0; i < al.size(); i++) {
									
										Poll pb = (Poll) al.get(i);
								%>
				<tr id= <%=pb.getId()%>>				
				<td><a href='Addquestion.jsp?id=<%=pb.getId()%>&ver=<%=pb.getVersion()%>&name=<%=pb.getName()%>&des=<%=pb.getDescription()%>'><%=pb.getId()%></a></td>
				<td><%=pb.getVersion()%></td>
				<td><%=pb.getName()%></td>
				<td><%=pb.getDescription()%></td>
				<td><%=pb.getLatitude()%></td>	
				<td><%=pb.getLongitude()%></td>
				<td><%=pb.getCreator()%></td>
				<td><%=pb.getCreatetime()%></td>	
				</tr>
				<%
					}

						
				%>
				<hr />
				 
				</tbody>
			</table> 		
		</div >		
	</body>
</html>